package org.wzl.personalwebsite.service;

import jakarta.servlet.http.HttpServletRequest;
import org.wzl.personalwebsite.dto.RegisterDTO;
import org.wzl.personalwebsite.dto.UserLoginDTO;
import org.wzl.personalwebsite.vo.RegisterVerifyCodeVO;

public interface UserService {

    /**
     * 登录接口
     *
     * @param: [userLoginDTO, request]
     * @return: void
     * @author 卫志龙
     * @date: 2024/9/21 23:51
     */
    void login(UserLoginDTO userLoginDTO, HttpServletRequest request);

    /**
     * 获取注册验证码，返回值为base64格式图片
     *
     * @param: []
     * @return: java.lang.String
     * @author 卫志龙
     * @date: 2024/9/21 23:52
     */
    RegisterVerifyCodeVO getRegisterVerifyImg();

    /**
     * 注册
     *
     * @param: [registerDTO]
     * @return: void
     * @author 卫志龙
     * @date: 2024/9/22 9:38
     */
    void register(RegisterDTO registerDTO);
}
